;;; init-misc.el --- No categorized settings -*- lexical-binding: t -*-
;;; Commentary:

;; Temporarily put these settings here

;;; Code:

(with-eval-after-load 'autorevert
  (setq auto-revert-check-vc-info t))



(global-set-key (kbd "C-h f") #'helpful-callable)
(global-set-key (kbd "C-h v") #'helpful-variable)
(global-set-key (kbd "C-h k") #'helpful-key)
(with-eval-after-load 'helpful
  (define-key helpful-mode-map (kbd "q") #'ctrlwei/quit-window))



;; Search and refacotry code with rg
(autoload 'color-rg-search-input "color-rg" nil t)
(autoload 'color-rg-search-symbol "color-rg" nil t)
(autoload 'color-rg-search-input-in-project "color-rg" nil t)
(autoload 'color-rg-search-symbol-in-project "color-rg" nil t)
(autoload 'color-rg-search-symbol-in-current-file "color-rg" nil t)
(autoload 'color-rg-search-input-in-current-file "color-rg" nil t)
(autoload 'color-rg-search-symbol-with-type "color-rg" nil t)
(autoload 'color-rg-search-project-with-type "color-rg" nil t)



(with-eval-after-load 'darkroom
  (setq darkroom-text-scale-increase 1))



(with-eval-after-load 'plantuml-mode
  (setq plantuml-default-exec-mode 'jar)
  (setq plantuml-jar-path (expand-file-name "plantuml-1.2022.1.jar" ctrlwei-third-party-bin-dir)))



(with-eval-after-load 'tramp
  (add-to-list 'tramp-remote-path 'tramp-own-remote-path))



(with-eval-after-load 'calendar
  (setq calendar-month-name-array ["January(一月)" "February(二月)" "March(三月)" "April(四月)"
                                   "May(五月)" "June(六月)" "July(七月)" "August(八月)"
                                   "September(九月)" "October(十月)" "November(十一月)" "December(十二月)"])
  (setq calendar-week-start-day 1)
  (setq calendar-weekend-days '(7 6))
  (setq calendar-intermonth-text '(propertize (format "%2d"
                                                      (car (calendar-iso-from-absolute (calendar-absolute-from-gregorian
                                                                                        (list month day year)))))
                                              'font-lock-face 'font-lock-keyword-face))
  (setq calendar-intermonth-header (propertize "Wk" 'font-lock-face 'font-lock-keyword-face)))



(setq-default proced-auto-update-flag t)
(with-eval-after-load 'proced
  (setq proced-enable-color-flag t)
  (setq proced-goal-attribute nil))



(add-to-list 'warning-suppress-log-types '(files missing-lexbind-cookie))

(provide 'init-misc)
;;; init-misc.el ends here
